import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import axios from 'axios';

Vue.config.productionTip = false
Vue.use(ElementUI);

axios.interceptors.request.use((config)=>{
  if(localStorage.getItem("token")){
    config.headers.Authorization=localStorage.getItem("token");
  }
  return config;
});

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
